package name.luojun.DBhelper.model;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class SimpleTable {
	private String name;
	private PrimaryKey primarykey;
	private List<ForeignKey> foreignkeys;
	private List<UniqueKey> uniquekeys;
	private Map<String, SimpleColumn> columns = new LinkedHashMap<String, SimpleColumn>();
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public PrimaryKey getPrimarykey() {
		return primarykey;
	}
	public void setPrimarykey(PrimaryKey primarykey) {
		this.primarykey = primarykey;
	}
	public List<ForeignKey> getForeignkeys() {
		return foreignkeys;
	}
	public void setForeignkeys(List<ForeignKey> foreignkeys) {
		this.foreignkeys = foreignkeys;
	}
	public List<UniqueKey> getUniquekeys() {
		return uniquekeys;
	}
	public void setUniquekeys(List<UniqueKey> uniquekeys) {
		this.uniquekeys = uniquekeys;
	}
	public Map<String, SimpleColumn> getColumns() {
		return columns;
	}
	public void setColumns(Map<String, SimpleColumn> columns) {
		this.columns = columns;
	}
	public SimpleColumn getColumn(String columnname) {
		return columns.get(columnname);
	}
	public void setColumn(SimpleColumn column) {
		columns.put(column.getName(), column);
	}
	
}
